<?php
	require_once("gm_load.php");
	if(isset($_GET['user'])){
		if($_GET['mail']){
			echo '注册账户';
		}
		else {
			echo '登录帐户';
		}
	}
	else {
?>
	<form action='<?php echo $_SERVER['PHP_SELF']; ?>' method='post'>
		用户名：<input type='text' id='user' name='user' />
		密码：<input type='text' id='pwd' name='pwd' />
		<input type='submit' id='submit' name='submit' value='登录' />
	</form>
	<form action='<?php echo $_SERVER['PHP_SELF']; ?>' method='post'>
		用户名：<input type='text' id='user' name='user' />
		密码：<input type='text' id='pwd' name='pwd' />
		邮箱：<input type='text' id='mail' name='mail' />
		<input type='submit' id='submit' name='submit' value='注册' />
	</form>
<?php
	}
?>